//用户接口
import request from '@/utils/request'

//新增用户
export function addAdmin(data) {
    return request({
        url: '/backend/admin/add',
        method: 'post',
        data
    })
}
//删除用户
export function deleteAdmin(data) {
    return request({
        url: '/backend/admin/delete',
        method: 'post',
        data: data
    })
}
//用户列表
export function getAdminList(data) {
    return request({
        url: '/backend/admin/list',
        method: 'post',
        data: data
    })
}
//编辑用户
export function editAdmin(data) {
    return request({
        url: '/backend/admin/update',
        method: 'post',
        data: data
    })
}
//用户详情
export function passwordAdmin(data) {
    return request({
        url: '/backend/admin/update/my/password',
        method: 'post',
        data: data
    })
}
